package com.neusoft.chenhanhua.shuzulx;

public class Student {
	public int number;
	public int state ;
	public int score;
	public static String name;
	public static void main(String[] args) {
		for (int i = 1; i < 21; i++) {
			name=name+i;
			Student name=new Student();
			name.state=(int)(Math.random()*3+1);
			name.score=(int)(Math.random()*100+1);
			name.number=i;
			if (name.state==3) {
				System.out.println("学号"+name.number+"年级："+name.state+"成绩"+name.score);
			}
		}
	}

}
